<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Android 基础知识点文章汇总 | 无人深空</title><meta name="keywords" content="Android"><meta name="author" content="zcm"><meta name="copyright" content="zcm"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="合集进击的 Android 秃头 Handler &amp; Binder图解 Handler 机制 牛啊！居然把 Handler 事件分发、Handler 线程切换讲得这么清楚 Android 异步通信：详解 Handler 内存泄露的原因 了解 Binder 机制原理和底层实现 Binder 与 Handler 的简要理解 IPC（跨进程通信） ViewView 的绘制流程 - B站视频 Vi">
<meta property="og:type" content="article">
<meta property="og:title" content="Android 基础知识点文章汇总">
<meta property="og:url" content="https://gitee.com/zcmmmm/zcmmmm/2023/04/17/Android%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E7%82%B9%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/index.html">
<meta property="og:site_name" content="无人深空">
<meta property="og:description" content="合集进击的 Android 秃头 Handler &amp; Binder图解 Handler 机制 牛啊！居然把 Handler 事件分发、Handler 线程切换讲得这么清楚 Android 异步通信：详解 Handler 内存泄露的原因 了解 Binder 机制原理和底层实现 Binder 与 Handler 的简要理解 IPC（跨进程通信） ViewView 的绘制流程 - B站视频 Vi">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://study-record-images.oss-cn-beijing.aliyuncs.com/Android.png">
<meta property="article:published_time" content="2023-04-17T14:17:24.000Z">
<meta property="article:modified_time" content="2023-04-17T14:26:57.561Z">
<meta property="article:author" content="zcm">
<meta property="article:tag" content="Android">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://study-record-images.oss-cn-beijing.aliyuncs.com/Android.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://gitee.com/zcmmmm/zcmmmm/2023/04/17/Android%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E7%82%B9%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":200},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: {"chs_to_cht":"你已切换为繁体","cht_to_chs":"你已切换为简体","day_to_night":"你已切换为深色模式","night_to_day":"你已切换为浅色模式","bgLight":"#49b1f5","bgDark":"#1f1f1f","position":"bottom-left"},
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Android 基础知识点文章汇总',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-04-17 22:26:57'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><link rel="stylesheet" href="/css/categories.css?v1"><link rel="stylesheet" href="/css/navigation.css?v1"><link rel="stylesheet" href="/css/custom.css?v1"><meta name="generator" content="Hexo 6.3.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="https://s2.loli.net/2022/09/22/36LN4kcjYOd9HT8.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">43</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">25</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">11</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">无人深空</a></span><div id="menus"></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间轴</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div><div id="nav-right"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i></a></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav></header><main class="layout" id="content-inner"><div id="post"><div id="post-info"><h1 class="post-title">Android 基础知识点文章汇总</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-04-17T14:17:24.000Z" title="发表于 2023-04-17 22:17:24">2023-04-17</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-04-17T14:26:57.561Z" title="更新于 2023-04-17 22:26:57">2023-04-17</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/Android/">Android</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-wordcount"><i class="far fa-file-word fa-fw post-meta-icon"></i><span class="post-meta-label">字数总计:</span><span class="word-count">298</span><span class="post-meta-separator">|</span><i class="far fa-clock fa-fw post-meta-icon"></i><span class="post-meta-label">阅读时长:</span><span>1分钟</span></span><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="Android 基础知识点文章汇总"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div><article class="post-content" id="article-container"><h3 id="合集"><a href="#合集" class="headerlink" title="合集"></a>合集</h3><p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/c_1278804764025843712">进击的 Android 秃头</a></p>
<h3 id="Handler-amp-Binder"><a href="#Handler-amp-Binder" class="headerlink" title="Handler &amp; Binder"></a>Handler &amp; Binder</h3><p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/592fb6bb69fa">图解 Handler 机制</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/199199360">牛啊！居然把 Handler 事件分发、Handler 线程切换讲得这么清楚</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/ed9e15eff47a">Android 异步通信：详解 Handler 内存泄露的原因</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/manmanlu/p/7216281.html">了解 Binder 机制原理和底层实现</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.51cto.com/u_8599981/1404229">Binder 与 Handler 的简要理解</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/songzi1228/article/details/82757302">IPC（跨进程通信）</a></p>
<h3 id="View"><a href="#View" class="headerlink" title="View"></a>View</h3><p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1Hy4y1V7bN/">View 的绘制流程 - B站视频</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/89976020">View 的绘制流程 - 知乎</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/3e9aa4bdaefd">RecyclerView 的缓存机制</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/9cd43f9333da">RecyclerView 的四级缓存-初探</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/b07b24c897d0">ListView 的四种优化方式</a></p>
<h3 id="四大组件"><a href="#四大组件" class="headerlink" title="四大组件"></a>四大组件</h3><p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/930dadb7a3cf">Android 四大组件详细总结</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/0ef1eabb4d40">Fragment 和 activity 的区别</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/3e1e2d4c7a99">Android 中 Fragment 的懒加载</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/f37efcf470fc">Activity 生命周期</a></p>
<p><a target="_blank" rel="noopener" href="https://www.codenong.com/cs106571613">Activity 生命周期函数调用顺序</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/4c798c91a613">Android Service 两种启动方式详解</a></p>
<h3 id="其他"><a href="#其他" class="headerlink" title="其他"></a>其他</h3><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_40611659/article/details/110235161">Android 数据存储、数据持久存储方式</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/81ce66b387fc">AsyncTask、HandlerThread、IntentService 的使用场景</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/xiaopihair123/article/details/53150011">AsyncTask 的内部实现、适用场景、执行过程</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/5f667dcea709">Android 五种布局的特点和布局优化</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/78e0a508b1c6">Android 中 MVC、MVP、MVVM 的区别与使用</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/ec92921d8a04">Android 长连接，怎么处理心跳机制</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/1071696">Android 减包－减少APK大小</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/b2c545c65355">dp、sp、px 区别</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/403f5a586d19">Android 类加载机制</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/lao-liang/p/5089336.html">理解 Android 安全机制</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/13b7dd5fd4c1">ANR 是什么？如何避免和解决 ANR</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/DevelopAndroid/article/details/81780477">class 文件和 dex 文件</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/e96f345e822f">Android Dex 分包</a></p>
<p><a target="_blank" rel="noopener" href="https://juejin.cn/post/6883309627933458445">Serializable 和 Parcelable 的区别</a></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://gitee.com/zcmmmm/zcmmmm">zcm</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://gitee.com/zcmmmm/zcmmmm/2023/04/17/Android%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E7%82%B9%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/">https://gitee.com/zcmmmm/zcmmmm/2023/04/17/Android%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E7%82%B9%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://gitee.com/zcmmmm/zcmmmm" target="_blank">无人深空</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/Android/">Android</a></div><div class="post_share"><div class="social-share" data-image="https://study-record-images.oss-cn-beijing.aliyuncs.com/Android.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2023/04/17/%E7%AE%97%E6%B3%95%E3%80%81%E6%99%BA%E5%8A%9B-%E6%96%87%E7%AB%A0%E6%B1%87%E6%80%BB/"><img class="prev-cover" src="https://study-record-images.oss-cn-beijing.aliyuncs.com/Algorithm.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">算法、智力题文章汇总</div></div></a></div><div class="next-post pull-right"><a href="/2023/03/03/Java%E5%87%BD%E6%95%B0%E5%BC%8F%E7%BC%96%E7%A8%8B/"><img class="next-cover" src="https://study-record-images.oss-cn-beijing.aliyuncs.com/Java/FunctionalProgramming/Functional%20programmi.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">Java函数式编程</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content is-expand"><ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%90%88%E9%9B%86"><span class="toc-text">合集</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Handler-amp-Binder"><span class="toc-text">Handler &amp; Binder</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#View"><span class="toc-text">View</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%9B%9B%E5%A4%A7%E7%BB%84%E4%BB%B6"><span class="toc-text">四大组件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%B6%E4%BB%96"><span class="toc-text">其他</span></a></li></ol></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2022 - 2023 By zcm</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/node-snackbar/dist/snackbar.min.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"></div><script src="/js/categories.js?v1"></script><script src="/js/navigation.js?v1"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>